

define(["jquery","cookie"], function($) {
	// 构造函数
	function usershow() {
		this.init();
	}

    // 扩展原型
    usershow.prototype = {
		constructor: usershow,
	
		// 初始化
		init() {
			this.show();
		},

	
		show() {
            $.cookie.json = true;

            const ess = $.cookie("user") || [];
            console.log(ess);
          //   console.log(JSON.parse(ess).username)
            console.log($(".usered").find("span").html())
           if (ess!=0){
             $(".usered").find("span").html(ess.username);
             
         
  
            
           }
   
		},
	};

	return new usershow();
});